package com.koalac.ironman.util;

import android.content.Context;
import android.view.View;
import android.view.inputmethod.InputMethodManager;

public class Keyboard {
	
	public static void showKeyboard(View view){
		Context context = view.getContext();
		InputMethodManager inputMethodManager = ((InputMethodManager) context.getSystemService(context.INPUT_METHOD_SERVICE));
		inputMethodManager.showSoftInput(view, 0);
	}
	
	public static void hideKeyboard(View view){
		Context context = view.getContext();
		InputMethodManager inputMethodManager = ((InputMethodManager) context.getSystemService(context.INPUT_METHOD_SERVICE));
		inputMethodManager.hideSoftInputFromWindow(view.getWindowToken(), 0);
	}
	
}
